

						<h1 align="center">Операции</h1>
						<h2 align="center">Модел: {'cp1251'|iconv:'utf-8':$model->number()}. {'cp1251'|iconv:'utf-8':$model->name()}</h2>

						<p align="center">За периода от {$fromDateEdit}   до {$toDateEdit}</p>
						<form name="vsdeDate" action="{$smarty.server.PHP_SELF}?{$smarty.server.QUERY_STRING}" method="post">
							<input type="hidden" name="fromVsdeDate" id="fromVsdeDate" value="{$fromVsdeDate}" />
							<input type="hidden" name="toVsdeDate" id="toVsdeDate" value="{$toVsdeDate}" />
						</form>

						<br /><br />
						<input type="button" value="Редактиране" onclick="document.location='{$smarty.server.PHP_SELF}?modid={$smarty.get.modid}{if isset($operator)}&opid={$operator->id()}{/if}'" />
						<br /><br />

						<table cellspacing="0" width="100%">
							<tr>
								<td class="DialogTitle">Операции</td>
							</tr>
							<tr>
								<td class="DialogBorder">

									<table cellspacing="1" class="DialogBox">
										<tr>
											<td class="DialogBox" valign="top"><br />
												<form action="{$smarty.server.PHP_SELF}?modid={$smarty.get.modid}" method="post" name="procoperform">

													<input type="hidden" name="modid" id="modid" value="{$smarty.get.modid}" />

													<table cellpadding="2" cellspacing="1" width="70%">
														<tr class="TableHead">
															<td width="5%">Номер</td>
															<td >Име</td>
															<td width="5%">Цена</td>
															<td width="5%">Брой</td>
															<td width="5%">Тотал</td>
														</tr>

													{foreach from=$listOperations item=op}
														<tr {cycle values=",class='TableSubHead'"}>
															<td >{'cp1251'|iconv:'utf-8':$op->operation_id}</td>
															<td><font class="ItemsList">{'cp1251'|iconv:'utf-8':$op->operation_name}</font></td>
															<td>{$op->price}</td>
															<td >{$op->sum_count}</td>
															<td >{$op->sum_total}</td>
														</tr>
													{/foreach}
														<tr>
															<td colspan="6"><hr /></td>
														</tr>
														<tr>
															<td colspan="4">&nbsp;</td>
															<td align="right">Тотал:</td>
															<td>{$subTotal}</td>
														</tr>
														<tr>
															<td colspan="6">
														
															</td>
														</tr>

														<tr>
															<td colspan="6" class="SubmitBox">

															
																<input type="button" name="print_work" value="Принтиране" onclick="vsOpenPrintPreview('work_count', this.form);" />
																<br />
															
															</td>
														</tr>


													</table>
												</form>
												<br />&nbsp;
											</td>
										</tr>
										<tr>
											<td>{$pager}</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>


